﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint;

namespace UE.SharePoint.ImportExport.BLL
{
    /// <summary>
    /// Represents a column. 
    /// </summary>
    public class Column
    {
        /// <summary>
        /// Gets or Sets that is the column name.
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// Gets or sets that is the column internal name.
        /// </summary>
        public string InternalName { get; set; } 

        /// <summary>
        /// Gets or sets that indicates the column is require.
        /// </summary>
        public bool Required { get; set; }

        /// <summary>
        /// ctor
        /// </summary>
        /// <param name="name"></param>
        public Column(string name)
            : this(name, name)
        {
        }

        /// <summary>
        /// ctor
        /// </summary>
        /// <param name="name"></param>
        /// <param name="internalName"></param>
        public Column(string name, string internalName)
            : this(name, internalName, false)
        {
        }

        /// <summary>
        /// ctor
        /// </summary>
        /// <param name="name"></param>
        /// <param name="internalName"></param>
        /// <param name="required"></param>
        public Column(string name, string internalName, bool required)
        {
            this.Name = name;
            this.InternalName = internalName;
            this.Required = required; 
        }
    }
}
